
<div  class="col-md-6 col-md-offset-3 col-sm-6 col-sm-offset-3">
    <div class="reg-header">            
        <h2>{{__('Sign In To Your Account')}}</h2>
    </div>

<div  id="login-form">
<style>
.reg-page {
    background: none repeat scroll 0 0 #fefefe;
    border: 1px solid #eee;
    box-shadow: 0 0 3px #eee;
    color: #555;
    padding: 30px;
}
.reg-page .input-group-addon {
    background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
    color: #bbb;min-width: 120px;text-align: left;
}
.reg-header {border-bottom: 1px solid #eee;color: #555;margin-bottom: 35px;text-align: center;}
</style>
      <form class="reg-page"  action="{{$this->Html->url('/users/login')}}" id="loginform" accept-charset="utf-8"  method="post" role="form" {{if $isajax}} onsubmit="return top.ajaxSubmitForm(this,'loginSuccess');" {{/if}}>
                <div class="form-group" id="login_errorinfo"></div>    
                <div class="form-group">

                    <div class="input-group">
                        <span class="input-group-addon">
                            <i class="fa fa-envelope"></i>
                            {{__('Email')}}
                        </span>

                        <input type="hidden" name="data[User][referer]" value="{{$this->data['User']['referer']}}">

                        <input type="email" required="required" name="data[User][email]" id="UserEmail" class="form-control" placeholder="{{__('Email')}}">
                    </div>
                </div>
                <div class="form-group">                  
                    <div class="input-group">
                        <span class="input-group-addon">
                            <i class="fa fa-lock"></i>
                            {{__('Password')}}
                        </span>
                        <input type="password"  required="required" name="data[User][password]" class="form-control" placeholder="{{__('Password')}}">
                    </div>
                </div>
                <div class="form-group">                  
                    <div class="checkbox" >
                            <label>
                              <input type="checkbox" name="data[User][remember_me]"  value="2592000"> {{__('Remember me')}}
                            </label>        
                        </div>
                </div>
                <div class="form-group">
                    <div class="clearfix">
                            <button type="submit" class="btn-u btn btn-default">{{__('Login')}}</button>  
                    </div>
                </div>

                    <hr>

                    <p> <a target="_blank" href="{{$this->Html->url('/users/forgot')}}" class="color-green">{{__('Forget Your Password?')}}</a></p>
                   
                    <p>{{__('Not registered?')}} <a href="{{$this->Html->url('/users/register')}}" onclick="return top.publishController.open_dialog(this.href,{title:'{{__('Register')}}',selector:'#register-form',width:550});" >{{__('Register')}}</a></p>
                    {{$this->Hook->call('oauthLoginLink')}}
                   <!--  {{if Configure::read('Weixin.qrlogin') }}
                    <a id="wechat-login" href="javascript:;" class="btn btn-primary">{{__('Wechat Login')}}</a>
                    {{/if}} -->
                </form>  
   
  </div>                          
</div>